﻿/*
 * Created by SharpDevelop.
 * User: JOHNNY
 * Date: 08-01-2015
 * Time: 16:11
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;

namespace aula14
{
	/// <summary>
	/// Description of Class1.
	/// </summary>
	public class TesteDelegate
	{
		delegate int Operador (int x);
		public static int Quadrado(int x) { return x*x;}
		public static int Cubo (int x) { return x* x *x;}
		public static void Main()
		{
			Operador Op1 = Quadrado;
			Console.WriteLine(Op1(3));
			Op1 = Cubo;
			Console.WriteLine(Op1(3));
		}
	}
}
